package com.lrkj.back.service.impl;

import com.lrkj.back.mapper.TbWenjuanHuidaMapper;
import com.lrkj.back.entity.TbWenjuanHuida;
import com.lrkj.back.service.TbWenjuanHuidaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.com.cbons.mamisay.parent.db.api.DBInterface;
import cn.com.cbons.mamisay.parent.exception.DBException;
import cn.com.cbons.mamisay.parent.service.base.ParentServiceImpl;

@Transactional
@Service("huidaService")
public class TbWenjuanHuidaServiceImpl extends ParentServiceImpl<TbWenjuanHuida> implements TbWenjuanHuidaService {
    @Autowired
    private TbWenjuanHuidaMapper huidaMapper;

    @Override
    protected DBInterface<TbWenjuanHuida> getDao() throws DBException {
        return huidaMapper;
    }

    @Override
    public int selectcountWenjuan(TbWenjuanHuida emp) throws DBException {
        // TODO Auto-generated method stub
        int count = huidaMapper.selectcountWenjuan(emp);
        return count;
    }

    @Override
    public int deletebywenjuanid(int id) throws DBException {
        return huidaMapper.deletebywenjuanid(id);
    }

}
